home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / allfiles / Centri / Centri.dir / 00272_Script_ControlsLoc < prev    next >
Text File  |  1999-02-25  |  5KB  |  91 lines

  1. property origSprite, fsprite1, fsprite2, fsprite3,
  2.  
  3. on enterFrame me
  4.   set the height of sprite fsprite1 = the height of sprite origSprite * 0.1
  5.   set the width of sprite fsprite1 = the height of sprite fsprite1
  6.   
  7.   set the height of sprite fsprite2 = the height of sprite origSprite * 0.1
  8.   set the width of sprite fsprite2 = the height of sprite fsprite2
  9.   
  10.   set the height of sprite fsprite3 = the height of sprite origSprite * 0.1
  11.   set the width of sprite fsprite3 = the height of sprite fsprite3
  12.   
  13.   
  14. on exitFrame me
  15.   if the locv of sprite the spriteNum of me > 15 then
  16.     
  17.     if the spriteNum of me = 54 then
  18.       set the locv of sprite fsprite1 = the top of sprite origSprite + (the height of sprite origSprite * 0.95)
  19.       set the locv of sprite fsprite2 = the top of sprite origSprite + (the height of sprite origSprite * 0.95)
  20.       set the locv of sprite fsprite3 = the top of sprite origSprite + (the height of sprite origSprite * 0.95)
  21.       
  22.       set the loch of sprite fsprite1 = the left of sprite origSprite + (the width of sprite origSprite * 0.82)
  23.       set the loch of sprite fsprite2 = the left of sprite origSprite + (the width of sprite origSprite * 0.89)
  24.       set the loch of sprite fsprite3 = the left of sprite origSprite + (the width of sprite origSprite * 0.96)
  25.       
  26.     else if the spriteNum of me = 70 then
  27.       set the locv of sprite fsprite1 = the top of sprite origSprite + (the height of sprite origSprite * 0.95)
  28.       set the locv of sprite fsprite2 = the top of sprite origSprite + (the height of sprite origSprite * 0.95)
  29.       set the locv of sprite fsprite3 = the top of sprite origSprite + (the height of sprite origSprite * 0.95)
  30.       
  31.       set the loch of sprite fsprite1 = the left of sprite origSprite + (the width of sprite origSprite * 0.87)
  32.       set the loch of sprite fsprite2 = the left of sprite origSprite + (the width of sprite origSprite * 0.92)
  33.       set the loch of sprite fsprite3 = the left of sprite origSprite + (the width of sprite origSprite * 0.98)
  34.       
  35.     else if the spriteNum of me = 79 then
  36.       set the locv of sprite fsprite1 = the top of sprite origSprite + (the height of sprite origSprite * 0.93)
  37.       set the locv of sprite fsprite2 = the top of sprite origSprite + (the height of sprite origSprite * 0.93)
  38.       set the locv of sprite fsprite3 = the top of sprite origSprite + (the height of sprite origSprite * 0.93)
  39.       
  40.       set the loch of sprite fsprite1 = the left of sprite origSprite + (the width of sprite origSprite * 0.88)
  41.       set the loch of sprite fsprite2 = the left of sprite origSprite + (the width of sprite origSprite * 0.93)
  42.       set the loch of sprite fsprite3 = the left of sprite origSprite + (the width of sprite origSprite * 0.97)
  43.       
  44.     else if the spriteNum of me = 89 then
  45.       set the locv of sprite fsprite1 = the top of sprite origSprite + (the height of sprite origSprite * 0.95)
  46.       set the locv of sprite fsprite2 = the top of sprite origSprite + (the height of sprite origSprite * 0.95)
  47.       set the locv of sprite fsprite3 = the top of sprite origSprite + (the height of sprite origSprite * 0.95)
  48.       
  49.       set the loch of sprite fsprite1 = the left of sprite origSprite + (the width of sprite origSprite * 0.88)
  50.       set the loch of sprite fsprite2 = the left of sprite origSprite + (the width of sprite origSprite * 0.93)
  51.       set the loch of sprite fsprite3 = the left of sprite origSprite + (the width of sprite origSprite * 0.98)
  52.       
  53.     else  if the spriteNum of me = 97 then
  54.       set the locv of sprite fsprite1 = the top of sprite origSprite + (the height of sprite origSprite * 0.95)
  55.       set the locv of sprite fsprite2 = the top of sprite origSprite + (the height of sprite origSprite * 0.95)
  56.       set the locv of sprite fsprite3 = the top of sprite origSprite + (the height of sprite origSprite * 0.95)
  57.       
  58.       set the loch of sprite fsprite1 = the left of sprite origSprite + (the width of sprite origSprite * 0.806)
  59.       set the loch of sprite fsprite2 = the left of sprite origSprite + (the width of sprite origSprite * 0.876)
  60.       set the loch of sprite fsprite3 = the left of sprite origSprite + (the width of sprite origSprite * 0.942)
  61.       
  62.     end if
  63.     
  64.     
  65.     
  66.   end if
  67.   
  68.   updateStage
  69. end
  70.  
  71.  
  72. on getPropertyDescriptionList
  73.   
  74.   set p_list = [ ¼
  75.              origSprite : [ #comment:   " The loch of which Sprite:", ¼
  76.                                #format:   #integer, ¼
  77.                               #default:    1 ] , ¼
  78.   fsprite1 : [ #comment:   " follow Sprite 1:", ¼
  79.                                #format:   #integer, ¼
  80.                               #default:    1 ] , ¼
  81.   fsprite2 : [ #comment:   " follow Sprite 2:", ¼
  82.                                #format:   #integer, ¼
  83.                               #default:    2 ] , ¼
  84.   fsprite3 : [ #comment:   " follow Sprite 3:", ¼
  85.                                #format:   #integer, ¼
  86.                               #default:    3 ]]
  87.   
  88.   return p_list
  89.   
  90. end
  91.